export const constantRouse = [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/HomeView.vue'),
      meta: { requiresGuest: true },
      children: [
        {
          path: 'packages',
          name: 'packages',
          component: () => import('../views/PackageListView.vue')
        },
        {
          path: 'package/:id',
          name: 'package-detail',
          component: () => import('../views/PackageDetailView.vue')
        },
        {
          path: 'medicalInstitutions/:id',
          name: 'medicalInstitutions-detail',
          component: () => import('../views/MedicalInstitutionsView.vue')
        },
        {
          path: 'appointments',
          name: 'appointments',
          component: () => import('../views/AppointmentView.vue'),
          meta: { requiresAuth: true }
        },
        {
          path: 'admin_users',
          name: 'admin_users',
          component: () => import('../views/admin/users.vue'),
          meta: { requiresAuth: true }
        },
        {
          path: 'admin_medicalInstitutions',
          name: 'admin_medicalInstitutions',
          component: () => import('../views/admin/medicalInstitutions.vue'),
          meta: { requiresAuth: true }
        },
        {
          path: 'admin_packages',
          name: 'admin_packages',
          component: () => import('../views/admin/medical_packages.vue'),
          meta: { requiresAuth: true }
        },
        {
          path: 'admin_appointments',
          name: 'admin_appointments',
          component: () => import('../views/admin/appointments.vue'),
          meta: { requiresAuth: true }
        },
        {
          path: 'admin_evaluations',
          name: 'admin_evaluations',
          component: () => import('../views/admin/evaluations.vue'),
        },      {
          path: 'admin_role',
          name: 'admin_role',
          component: () => import('../views/admin/role.vue'),
        }

      ]
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/LoginView.vue'),
      meta: { requiresGuest: true }
    },
    {
      path: '/register',
      name: 'register',
      component: () => import('../views/RegisterView.vue'),
      meta: { requiresGuest: true }
    },
    {
      path: '/404',
      component: () => import('@/views/404/index.vue'),
      name: '404',
      meta: {
        title: '404',
        hidden: true,
        icon: 'Warning'
      }
    },
    {
      path: '/:pathMatch(.*)*',
      redirect: '/404',
      name: 'Any',
      meta: {
        title: '404',
        hidden: true,
        icon: 'Warning'
      }
    }
]
